from microbit import *
import machine

display.show('S')

def get_serial_number():
    return int.from_bytes(machine.unique_id(), 'big')
    
while True:
    if button_a.was_pressed():
        display.scroll(hex(get_serial_number()))
        display.show('S')
    sleep(50)